package top.infopub.mgr.cap.dao;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import top.infopub.dto.cap.PayInterestDto;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.cap.domain.PayInterestDomain;
import top.infopub.mgr.cap.vo.PayInterestQuery;
import top.infopub.model.cap.PayIntBankInfo;
import top.infopub.model.cap.PayInterest;

import java.util.List;

/** 融资付息(CAP_PAY_INTEREST) **/
@Repository
public interface PayInterestDao extends GenericDao<PayInterest, String> {
    /**
     * 查询融资付息开户银行信息列表
     * @return
     */
    List<PayIntBankInfo> queryPayIntBankInfoList();

    /**
     * 新增融资付息开户银行信息
     * @param payIntBankInfo
     */
    void insertPayIntBankInfo(PayIntBankInfo payIntBankInfo);

    /**
     * 根据开户卡号查询银行信息
     * @param accountNo
     * @return
     */
    PayIntBankInfo queryByAccountNo(@Param("accountNo") String accountNo);

    /**
     * 融资付息分页列表
     * @param query
     * @return
     */
    List<PayInterestDomain> queryPayInterestList(PayInterestQuery query);

    /**
     *
     * @param id
     * @return
     */
    PayInterestDto queryDetailById(@Param("id") String id);
}